package sample;

import com.headingdata.trans.JavaTrans;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.awt.*;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
        primaryStage.setTitle("Hello World");
        primaryStage.setScene(new Scene(root, 300, 275));
        primaryStage.show();
        JavaTrans.initData();
        double v = JavaTrans.calPointLen(121.6448802732681, 31.33787149357201, 121.643451574769, 31.3386395248639);
        System.out.println("计算的距离："+v);
    }

    public static void main(String[] args) {
        launch(args);
    }
}
